package com.newtype.meeting.shared;

import java.io.Serializable;
import java.util.Date;

import com.extjs.gxt.ui.client.data.BaseModel;

@SuppressWarnings("serial")
public class AccountSummaryDTO extends BaseModel implements Serializable {
	private String id;
	private String accountID;
	private String fullName;
	private String gender;
	private Date onlineDATE;
	private Date registerDate;
	private String deptID;
	private String title;
	private String status;
	private String deptName;

	public AccountSummaryDTO() {

	}

	public AccountSummaryDTO(String id, String accountID, String fullName,
			String deptID) {
		super();
		this.id = id;
		this.accountID = accountID;
		this.fullName = fullName;
		this.deptID = deptID;
	}

	public AccountSummaryDTO(String id, String accountID, String fullName,
			String gender, Date onlineDATE, Date registerDate, String deptID,
			String title, String status) {
		super();
		this.id = id;
		this.accountID = accountID;
		this.fullName = fullName;
		this.gender = gender;
		this.onlineDATE = onlineDATE;
		this.registerDate = registerDate;
		this.deptID = deptID;
		this.title = title;
		this.status = status;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccountID() {
		return accountID;
	}

	public void setAccountID(String accountID) {
		this.accountID = accountID;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getOnlineDATE() {
		return onlineDATE;
	}

	public void setOnlineDATE(Date onlineDATE) {
		this.onlineDATE = onlineDATE;
	}

	public Date getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

	public String getDeptID() {
		return deptID;
	}

	public void setDeptID(String deptID) {
		this.deptID = deptID;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public void updateProperties() {
		set("accountID", getAccountID());
		set("fullName", getFullName());
		set("gender", getGender());
		set("onlineDATE", getOnlineDATE());
		set("registerDate", getRegisterDate());
		set("deptID", getDeptID());
		set("deptName", getDeptName());
		set("title", getTitle());
		set("status", getStatus());
	}

	public void updateObject() {
		setAccountID((String) get("accountID"));
		setFullName((String) get("fullName"));
		setGender((String) get("gender"));
		setOnlineDATE((Date) get("onlineDATE"));
		setRegisterDate((Date) get("registerDate"));
		setDeptID((String) get("deptID"));
		setTitle((String) get("title"));
		setStatus((String) get("status"));
		setDeptName((String) get("deptName"));
	}
}
